package cn.joeg.app;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component("gCoreConfig")
@ConfigurationProperties(prefix = "dew")
public class GCoreConfig {


    private GCoreBasic basic = new GCoreBasic();
    private GCoreCluster cluster = new GCoreCluster();


    public GCoreBasic getBasic() {
        return basic;
    }

    public GCoreCluster getCluster() {
        return cluster;
    }

    public void setCluster(GCoreCluster cluster) {
        this.cluster = cluster;
    }


    public static class GCoreBasic {

        private String name = "";
        private String version = "1.0";
        private String desc = "";
        private String webSite = "";
        private GcoreDoc doc = new GcoreDoc();

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public String getWebSite() {
            return webSite;
        }

        public void setWebSite(String webSite) {
            this.webSite = webSite;
        }

        public static class GcoreDoc {

            private String basePackage = "";

            public String getBasePackage() {
                return basePackage;
            }

            public void setBasePackage(String basePackage) {
                this.basePackage = basePackage;
            }
        }


        public GcoreDoc getDoc() {
            return doc;
        }

        public void setDoc(GcoreDoc doc) {
            this.doc = doc;
        }


    }


    public static class GCoreCluster {

        private String mq;
        private String cache;
        private String dist;

        public String getMq() {
            return mq;
        }

        public void setMq(String mq) {
            this.mq = mq;
        }

        public String getCache() {
            return cache;
        }

        public void setCache(String cache) {
            this.cache = cache;
        }

        public String getDist() {
            return dist;
        }

        public void setDist(String dist) {
            this.dist = dist;
        }
    }

}
